
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
      <h2 class="title_color text-center">经销商反馈信息</h2>
    </div>
    <!-- 标题 -->
    <div class="row-margin-top">
    <form action=""  class="form-inline" method="get">
      <table class=" tab-content table-bordered table text-left" border="1">
          <tr>
            <td style="min-width: 140px;width: 140px" class="text-right"><label for="" class="form-label">主题：</label></td>
            <td><input type="text" class="form-control" name=""></td>
             <td style="min-width: 140px;width: 140px" class="text-right"><label for="" class="form-label">反馈类型：</label></td>
            <td colspan="2">
              <select name="" id="" class="form-control">
                <option value="0">请选择</option>
                <option value="1">意见</option>
                <option value="2">投诉</option>
                <option value="3">建议</option>
              </select>
            </td>
             </tr>
          <tr>
              <td style="min-width: 140px;width: 140px" class="text-right"><label for="" class="form-label">创建时间：</label></td>
              <td>
                 <div class="form-group">
            <input type="text" id="start" class="form-control layer-date " style="display: inline-block;min-width: 120px;width: 120px" name="">
           </div>
            <div class="form-group">
               至
            </div>
           <div class="form-group">
            <input type="text" class="form-control layer-date"  style="display: inline-block;min-width: 120px;width: 120px" id="end" name="">
           </div>
            </td>
             <td class="text-right"><label for="" class="form-label">状态：</label>
             </td>
           <td>
            <select name="" id="" class="form-control select">
              <option value="0">请选择</option>
              <option value="1">草稿</option>
              <option value="2">未读</option>
              <option value="3">已读</option>
              <option value="4">已回复</option>
              <option value="5">有新回复</option>
              <option value="6">反馈人已读</option>
            </select>
           </td>
           <td> <button class="btn btn-sm btn-info query" type="button">查询</button></td>
          </tr>
      </table>
      <table class="table table-striped table-bordered table-hover bud_hei text-center"  id="kuncunTable">
          <tr>
            <td colspan="7" class="text-left"><button class="btn btn-sm btn-primary" type="button" id="setReaded">设置为已读</button> <span class="lr_5"></span><a href="javascript:;" class="btn btn-sm btn-primary">刷新</a></td>
          </tr>
           <tr class="info">
            <td style="vertical-align: middle !important;text-align: center;width: 3%">
              <input type="checkbox" name="items" id="checkAll">
            </td>
            <td>主题</td>
            <td>反馈类型</td>
            <td>反馈经销商名称</td>
            <td>创建时间</td>
            <td>状态</td>
            <td>操作</td>
          </tr>
       <!--    <tr>
                   <td align="center"><input type="checkbox" name="items"></td>
                    <td>1</td>
                    <td>一天最多积分</td>
                    <td>10</td>
                    <td>100</td>
                    <td><a href="javascript:;" class="modify">修改</a></td>
              </tr>
              <tr>
                  <td align="center"><input type="checkbox" name="items"></td>
                    <td>2</td>
                    <td>登录系统</td>
                    <td>1</td>
                    <td>1</td>
                    <td><a href="javascript:;" class="modify">修改</a></td>
              </tr>
               <tr>
                  <td align="center"><input type="checkbox" name="items"></td>
                    <td>3</td>
                    <td>管理订单</td>
                    <td>2</td>
                    <td>10</td>
                    <td><a href="javascript:;" class="modify">修改</a></td>
              </tr>
              <tr>
                  <td align="center"><input type="checkbox" name="items"></td>
                    <td>4</td>
                    <td>管理库存</td>
                    <td>1</td>
                    <td>5</td>
                    <td><a href="javascript:;" class="modify">修改</a></td>
              </tr>
 -->
      </table>
        <!--   <h5 class="text-center"  style="font-size: 13px;font-weight: 500">
                    总共有12条记录，第1/2页,当前页<input id="page" type="text"  style="width: 40px" value="1"/><span id="gopage">Go</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp;
                    每页显示
                    <select id="pagesize">
                        <option value='10' selected>10条</option>
                        <option value='15'>15条</option>
                        <option value='20'>20条</option>

                    </select>
                </h5>
 -->
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
       <script src="__STATIC__/layout/js/common.js"></script>
    <script>
    	 //日期范围限制
        var start = {
            elem: '#start',
            format: 'YYYY/MM/DD',
            min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };
        var end = {
            elem: '#end',
            format: 'YYYY/MM/DD',
            min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
        laydate(start);
        laydate(end);
            $(document).ready(function(){
            var $ObjectNum =$(".ObjectNum");
               toNum($ObjectNum);
          })
    
      $("#setReaded").click(function() {
            // $("#alert_addNewZone").show();
            var $items = $("[name=items]:checkbox")
            if ($items.filter(':checked').length < 1) {
                sweetAlert("", "请选择要设置的信息！", "error");
            } else {
              $items.each(function(){ 
                if( $(this).is(':checked')){
                   $(this).parent().parent().remove();
                  }
        }); 
            }
        });

/*全选*/

$("#checkAll1").click(function(){
   $("[name=items]:checkbox").prop("checked", true);
    $("[name=items]:checkbox").parents("tr").css("backgroundColor", "#f8f800")
})
/*反选*/

$("#no_checkAll").click(function(){
   $("[name=items]:checkbox").prop("checked", false);
    $("[name=items]:checkbox").parents("tr").css("backgroundColor", "#fff")
})
          /*table表格操作*/
      $("#checkAll").click(function() {

            $("[name=items]:checkbox").prop("checked", $(this).prop("checked"));
            if ($("[name=items]:checkbox").prop("checked") != true) {
                // console.log($(this))
                $("[name=items]:checkbox").parents("tr").css("backgroundColor", "#fff")
            } else {
                $("[name=items]:checkbox").parents("tr").css("backgroundColor", "#f8f800")

            }
        })
        $("[name=items]:checkbox").click(function() {
            //定义一个临时变量，避免重复使用同一个选择器选择页面中的元素，提高程序效率
            // console.log(1)
            var $tmp = $("[name=items]:checkbox");
            if ($(this).prop("checked") != true) {
                // console.log($(this))
                $(this).parent().parent().css("backgroundColor", "#fff")
            } else {
                $(this).parent().parent().css("backgroundColor", "#f8f800")

            }
            //用filter()方法筛选出选中的复选框，并直接给CheckedAll赋值
            $("#checkAll").prop('checked', $tmp.length == $tmp.filter(':checked').length);

          })

    </script>
</body>

</html>
